<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>payment</title>
</head>
<body>
  <div>
    <p>商品：Web前端课程</p>
    <p>原价：1980元</p>
    <p>现价：1.98元</p>
    <p>内容：HTML、CSS、JavaScript</p>
    <p>地址：四海为家</p>
    <p>
      <button>取消</button>
      <button>支付</button>
    </p>
  </div>
  <script>
    // http://jinwen01.ke.qq.com
    // 逻辑：点击支付出现确认框
    document.getElementsByTagName('button')[1].onclick=function(){
      let res = window.confirm('您确定要支付吗？');
      if(res){
        location.href='./pay-succ.html'
      }
    }
  </script>
</body>
</html>